package com.headingdata.operator;

public class OperatorDemo4 {
    public static void main(String[] args) {
        //三目运算符
        double score = 68.5;
        String rs = score >= 60 ? "成绩及格":"成绩不及格";
        System.out.println(rs);

        //比较大小
        int a = 90;
        int b = 95;
        int c = 98;
        int max = a > b ? a: b > c ? b : c;
        System.out.println(max);


        // 优先级
        System.out.println(12 > 10 || 15 > 10 && 12 < 5 );
        System.out.println((12 > 10 || 15 > 10) && 12 < 5 );
    }
}
